package com.ldf.jrtsp.constants;

/**
 * rtsp相关常量
 *
 * @author lidaofu
 * @since 2024/6/19
 **/
public interface  RtspConstants {
    String RTSP_VERSION = " RTSP/1.0\r\n";
    String RTSP_OK = "RTSP/1.0 200 OK";
    String RTSP_UNAUTHORIZED = "RTSP/1.0 401 Unauthorized";
    String RTSP_CONTENT_TYPE = "Content-Type";
    String RTSP_CONTENT_LENGTH = "Content-Length";
    String RTSP_CSEQ = "CSeq: ";
    String RTSP_SESSION = "Session: ";
    String RTSP_SCALE = "Scale: ";
    String RTSP_TRANSPORT = "Transport: ";
    String RTSP_RANGE = "Range: npt=0.000-\r\n";
    String RTSP_USER_AGENT = "User-Agent: LDF-RTSP-CLIENT/V1.0\r\n";
    String RTSP_ACCEPT= "Accept: application/sdp\r\n";
    String RTSP_UNICAST_UDP = ";unicast;client_port=";
    String RTSP_UNICAST_TCP_VIDEO = ";unicast;interleaved=0-1";
    String RTSP_UNICAST_TCP_AUDIO = ";unicast;interleaved=2-3";
    String RTSP_CONTENT_BASE = "Content-Base";
    String RTSP_CONTENT_LENGTH_VALUE = "Content-Length";
    String RTSP_AUTH_HEARD = "WWW-Authenticate";
    String RTSP_AUTH_BASIC_HEARD = "Authorization: Basic ";
    String RTSP_DELIMITER = "\r\n";
    byte[] RTSP_KEEP_ALIVE_DATA={(byte) 0xCE, (byte) 0xFA, (byte) 0xED, (byte) 0xFE};
    int RTSP_TIMEOUT = 3000;
    int RTP_DATA_TIMEOUT = 3000;
    int RTSP_DEFAULT_PORT = 554;
    int RTP_MAX_MTU = 1500;
    int RTSP_INTERLEAVED_FRAME_PORT = 4;
    int RTSP_RTP_DATA_WAIT_TIME = 10;

}
